package com.ygqh.baby.model.wdt.qyb;

import com.alibaba.fastjson.annotation.JSONField;
import com.ygqh.baby.po.WdtQybOrder;
import com.ygqh.baby.po.WdtQybStockIn;
import com.ygqh.baby.po.WdtQybStockOut;

import java.util.List;

public class WdtQybResult {

    private int code;

    private String message;

    /**
     * trade_push 返回值
     */
    @JSONField(name = "new_count")
    private int newCount;

    @JSONField(name = "chg_count")
    private int chgCount;

    private String wdtCode;

    /**
     * trade_query
     */
    @JSONField(name = "total_count")
    private int totalCount;

    private List<WdtQybOrder> trades;
    /**
     * 同步库存
     */
    @JSONField(name = "stock_change_list")
    private List<WdtQybStockChange> stockChangeList;
    /**
     * 入库单查询
     */
    @JSONField(name = "stockin_list")
    private List<WdtQybStockIn> stockinList;
    /**
     * 出库但查询
     */
    @JSONField(name = "stockout_list")
    private List<WdtQybStockOut> stockoutList;

    @JSONField(name = "shoplist")
    private List<WdtShop> shoplist;


    private List<PushOrderToWdtResult> pushSuccessList;
    private List<PushOrderToWdtResult> pushErrorList;


    public WdtQybResult() {
        super();
    }

    public WdtQybResult(int code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public List<PushOrderToWdtResult> getPushSuccessList() {
        return pushSuccessList;
    }

    public void setPushSuccessList(List<PushOrderToWdtResult> pushSuccessList) {
        this.pushSuccessList = pushSuccessList;
    }

    public List<PushOrderToWdtResult> getPushErrorList() {
        return pushErrorList;
    }

    public void setPushErrorList(List<PushOrderToWdtResult> pushErrorList) {
        this.pushErrorList = pushErrorList;
    }

    public List<WdtShop> getShoplist() {
        return shoplist;
    }

    public void setShoplist(List<WdtShop> shoplist) {
        this.shoplist = shoplist;
    }

    public String getWdtCode() {
        return wdtCode;
    }

    public void setWdtCode(String wdtCode) {
        this.wdtCode = wdtCode;
    }

    public List<WdtQybStockOut> getStockoutList() {
        return stockoutList;
    }

    public void setStockoutList(List<WdtQybStockOut> stockoutList) {
        this.stockoutList = stockoutList;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<WdtQybStockChange> getStockChangeList() {
        return stockChangeList;
    }

    public void setStockChangeList(List<WdtQybStockChange> stockChangeList) {
        this.stockChangeList = stockChangeList;
    }

    public List<WdtQybOrder> getTrades() {
        return trades;
    }

    public void setTrades(List<WdtQybOrder> trades) {
        this.trades = trades;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getNewCount() {
        return newCount;
    }

    public void setNewCount(int newCount) {
        this.newCount = newCount;
    }

    public int getChgCount() {
        return chgCount;
    }

    public void setChgCount(int chgCount) {
        this.chgCount = chgCount;
    }

    public List<WdtQybStockIn> getStockinList() {
        return stockinList;
    }

    public void setStockinList(List<WdtQybStockIn> stockinList) {
        this.stockinList = stockinList;
    }

    public String getAsString() {
        return "WdtQybResult [code=" + code + ", message=" + message + ", newCount=" + newCount + ", chgCount=" + chgCount + "]";
    }

}
